<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php if(isset($_G['title']))echo $_G['title'],'-';if($_G['settings']['subtitle'])echo $_G['settings']['subtitle'],'-'; echo $_G['settings']['sitename']?></title>
<meta name="keywords" content="<?php if(isset($_G['keywords']))echo $_G['keywords']; else echo $_G['settings']['keywords'];?>"/>
<meta name="description" content="<?php if(isset($_G['description']))echo $_G['description']; else echo $_G['settings']['description'];?>"/>
<meta name="author" content="xk41czh" />
<script type="text/javascript">
var COOKIE_PRE='<?php echo COOKIE_PRE;?>';
var COOKIE_DOMAIN='<?php echo COOKIE_DOMAIN;?>';
var COOKIE_PATH='<?php echo COOKIE_PATH;?>';
</script>
<?php echo get_styles();?>
<?php echo get_scripts(); ?>
</head>
<body>
<div id="headinner">
	<div id="masthead">
		<ul class="menu">
		<li style="font-weight:bold;"><a href="{echo BASE_URL}">{$_G['settings']['sitename']}</a></li>
		</ul>				 
		 <ul class="righthead">  
		 	{if $_G['uid']}
		 	<li> 欢迎你，{$_G['username']}</li>
		 	{/if}
			{if !$_G['uid']}<li><a rel="nofollow" href="{url login.php}">登录</a></li> <li> <a rel="nofollow" href="{url register.php}">注册</a></li>{else}
			<li class="feed"><a rel="nofollow" href="{url user.php?f=logout}">退出登陆</a></li>
			{if $_G[users][shopid]}
			<li class="feed"><a rel="nofollow" href="{url home.php}" target="_blank">商家中心</a></li>
			<li><a rel="nofollow" href="{echo url('store.php?id='.$_G[users][shopid]);}" target="_blank">查看店铺</a></li>{else}
			<li class="feed"><a rel="nofollow" href="{url home.php}" target="_blank">用户中心</a></li>
			{/if}
			{/if}
		</ul>
	</div>
	<div class="clear"></div>
</div>	